<html>
<head>
  <meta name="viewport" content="initial-scale=1, user-scalable=0, minimal-ui">
  <meta http-equiv="Content-Type" content="text/html; charset={{web.charset}}">
  {{web.src}}


</head>
<body class="mdui-theme-primary-indigo mdui-drawer-body-left mdui-color-grey-300">

{{web.header}}
{{web.drawer}}

<div class="mdui-container">
  <div class="mdui-row">
    <button class="mdui-btn mdui-ripple mdui-color-theme mdui-m-a-1" onClick="update()">{{refresh}}</button>
    <table class="mdui-table mdui-table-hoverable">
      <tbody id="list">
      </tbody>
    </table>
  </div>

</div>
</body>
<script>
		{{js.websocket}}

		//建立连接事件
		ws.onopen = function(evt) {

		};

		//消息接收事件
		ws.onmessage = function(event) {
			var data = JSON.parse(event.data);
			console.log(data.type)
			if(data.type == "NO_PERMISSION") {
				gotoPage("login");
			}
		};
	</script>
</html>